<?php

use Illuminate\Database\Seeder;

class Admin_menuTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::insert("
            INSERT INTO `admin_menu` (`id`, `parent_id`, `order`, `title`, `icon`, `uri`, `created_at`, `updated_at`) VALUES
                (1, 0, 1, 'Index', 'fa-bar-chart', '/', NULL, NULL),
                (2, 0, 2, 'Admin', 'fa-tasks', '', NULL, NULL),
                (3, 2, 3, 'Users', 'fa-users', 'auth/users', NULL, NULL),
                (4, 2, 4, 'Roles', 'fa-user', 'auth/roles', NULL, NULL),
                (5, 2, 5, 'Permission', 'fa-ban', 'auth/permissions', NULL, NULL),
                (6, 2, 6, 'Menu', 'fa-bars', 'auth/menu', NULL, NULL),
                (7, 2, 7, 'Operation log', 'fa-history', 'auth/logs', NULL, NULL),
                (8, 0, 0, '页面管理', 'fa-connectdevelop', 'journals', '2018-05-14 23:24:17', '2018-05-16 19:27:22'),
                (9, 8, 0, '单页内容', 'fa-angle-double-right', '/pages', '2018-05-14 23:26:28', '2018-05-14 23:26:28'),
                (10, 0, 7, 'Helpers', 'fa-gears', '', '2018-05-15 00:01:35', '2018-05-15 00:01:35'),
                (11, 10, 8, 'Scaffold', 'fa-keyboard-o', 'helpers/scaffold', '2018-05-15 00:01:35', '2018-05-15 00:01:35'),
                (12, 10, 9, 'Database terminal', 'fa-database', 'helpers/terminal/database', '2018-05-15 00:01:35', '2018-05-15 00:01:35'),
                (13, 10, 10, 'Laravel artisan', 'fa-terminal', 'helpers/terminal/artisan', '2018-05-15 00:01:35', '2018-05-15 00:01:35'),
                (14, 10, 11, 'Routes', 'fa-list-alt', 'helpers/routes', '2018-05-15 00:01:35', '2018-05-15 00:01:35'),
                (15, 0, 0, '网刊管理', 'fa-bars', NULL, '2018-05-16 18:15:39', '2018-05-16 18:15:39'),
                (16, 15, 0, '期', 'fa-columns', 'issues', '2018-05-16 18:16:51', '2018-05-16 18:17:19'),
                (17, 15, 0, '期刊管理', 'fa-clone', 'journals', '2018-05-16 19:24:35', '2018-05-16 19:27:42'),
                (18, 0, 0, '网站新闻管理', 'fa-newspaper-o', NULL, '2018-05-17 01:37:25', '2018-05-21 22:09:09'),
                (19, 18, 0, '新闻栏目管理', 'fa-bars', 'newscat', '2018-05-17 01:38:43', '2018-05-21 22:09:20'),
                (20, 18, 0, '新闻信息', 'fa-align-left', 'news', '2018-05-21 22:34:30', '2018-05-21 22:34:30'),
                (22, 15, 0, '文章管理', 'fa-bars', 'articles', '2018-05-23 00:38:31', '2018-05-23 00:38:31'),
                (23, 0, 12, 'Menus', 'fa-anchor', 'menus', '2018-05-24 02:35:48', '2018-05-24 02:35:48'),
                (24, 0, 12, 'Contents', 'fa-file-text', '', '2018-06-11 22:41:42', '2018-06-11 22:41:42'),
                (25, 24, 13, 'Categroy', 'fa-keyboard-o', 'cms/categroies', '2018-06-11 22:41:42', '2018-06-11 22:41:42'),
                (26, 24, 14, 'Posts', 'fa-keyboard-o', 'cms/posts', '2018-06-11 22:41:42', '2018-06-11 22:41:42'),
                (27, 24, 15, 'Pages', 'fa-keyboard-o', 'cms/pages', '2018-06-11 22:41:42', '2018-06-11 22:41:42')
        ");
    }
}
